import request from '@/utils/request'

// 查询危废可转库列表
export function listPreTransferWarehouse(query) {
    return request({
        url: '/business/transferWarehouse/preTransferList',
        method: 'get',
        params: query
    })
}

// 查询危废转库列表
export function listTransferWarehouse(query) {
    return request({
        url: '/business/transferWarehouse/list',
        method: 'get',
        params: query
    })
}

// 查询危废转库详细
export function getTransferWarehouse(transferWarehouseId) {
    return request({
        url: '/business/transferWarehouse/' + transferWarehouseId,
        method: 'get'
    })
}

// 新增危废转库
export function addTransferWarehouse(data) {
    return request({
        url: '/business/transferWarehouse',
        method: 'post',
        data: data
    })
}

// 修改危废转库
export function updateTransferWarehouse(data) {
    return request({
        url: '/business/transferWarehouse',
        method: 'put',
        data: data
    })
}

// 删除危废转库
export function delTransferWarehouse(transferWarehouseId) {
    return request({
        url: '/business/transferWarehouse/' + transferWarehouseId,
        method: 'delete'
    })
}

// 导出危废转库
export function exportTransferWarehouse(query) {
    return request({
        url: '/business/transferWarehouse/export',
        method: 'get',
        params: query
    })
}


// 导出危废可转库记录
export function exportPreTransferWarehouse(query) {
    return request({
        url: '/business/preTransferWarehouse/export',
        method: 'get',
        params: query
    })
}